<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <meta charset="utf-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <title>Identification</title>
        <h:outputStylesheet name="css/signin.css"/>
        <h:outputStylesheet name="css/bootstrap.min.css"/>
    </h:head>
    
    <h:body>
        <ui:composition template="/template/originLayout.xhtml">
             <ui:define name ="content">
        <ui:composition template="./originLayout.xhtml">
            <ui:define name="content">
                <div class="container">
                    <h:form class="form-signin">
                        <h2 class="form-signin-heading">Identifiez vous</h2>
                        <h:outputLabel value="Adresse Email"/> <br/>
                        <h:inputText  id="email" class="form-control" requiredMessage="email" value="#{serviceUser.user.email}"/><br/>
                        <h:outputLabel value="password"/> <br/>
                        <h:inputSecret class="form-control" value="#{serviceUser.user.password}"/><br/>
                        <h:commandButton class="btn btn-lg btn-primary btn-block" action="#{serviceClient.autentification()}"/> //doit renvoyer "connection" si valide sinon "erreur id"
                        <br/>
                        <h2 class="form-signin-heading">Vous n'avez pas de compte?</h2>
                        <h:commandButton class="btn btn-lg btn-primary btn-block" action="inscription" value="Inscription"/>
                    </h:form>
                </div> 
            </ui:define>
        </ui:composition>
    </h:body>
</html>
